package com.gulimall.cart.feign;

import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author Rookie-6688
 * @Description
 * @Create 2021-04-26 9:30
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    @GetMapping("/product/skusaleattrvalue/info/{id}")
    R getAttrValueList(@PathVariable("id") Long skuId);

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @PostMapping("/product/skuinfo/infoList")
    R infoList(@RequestBody List<Long> skuIdList);

    @PostMapping("/product/spuinfo/infoList")
    R spuInfoList(@RequestBody List<Long> idList);
}
